package com.yu.init.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yu.init.model.dto.feed.FeedQueryRequest;
import com.yu.init.model.entity.Feed;
import com.yu.init.service.FeedService;
import com.yu.init.mapper.FeedMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
* @author Kinserty
* @description 针对表【feed】的数据库操作Service实现
* @createDate 2024-03-31 21:34:13
*/
@Service
public class FeedServiceImpl extends ServiceImpl<FeedMapper, Feed>
    implements FeedService{

    @Resource
    private FeedMapper feedMapper;
    @Override
    public Wrapper<Feed> getFeedByWrapper(FeedQueryRequest feedQueryRequest) {
        Long feedid = feedQueryRequest.getFeedid();


        return new QueryWrapper<Feed>().eq("feedId", feedid);
    }
}




